const router = require('../bin/router');
const constant  = require('../config/config')

const path = [
    {
        path: '/hello',
        method: constant.GET,
        implementation : 'hello'
    },
    {
        path: '/submit',
        method: constant.POST,
        implementation: 'submit'
    },
    {
        path: '/getDetail',
        method: constant.GET,
        implementation: 'getDetail'
    }
];

const route = (req,res) => {
    router.route(path,req,res);
};

module.exports.route = route;